package com.cn.serverline.lineicp.workshopPlan.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.serverline.lineicp.workshopPlan.entity.PlanLineAutomatic;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 周总装排产下发 Mapper 接口
 * </p>
 *
 * @author 田江余
 * @since 2024-08-10
 */
public interface PlanLineAutomaticMapper extends BaseMapper<PlanLineAutomatic> {


    @Update("<script>" +
            "update PLAN_LINE_AUTOMATIC set STATER_NUMBER = 3" +
            " where id in " +
            "<foreach item = 'id' collection= 'taskId' open = '(' close =')' separator = ',' >" +
            "#{id}" +
            "</foreach>"+
            "</script>")
    void updateTaskId(List<Long> taskId);
}
